The Week View component > FWeekView.setEnabled()

 

FWeekView.setEnabled()

Availability

Flash Player 6.

Usage

myWeekView_wkv.setEnabled (enabled)

Parameters

enabled A Boolean value specifying whether the component is enabled (true) or disabled (false).

Returns


Nothing

 

Description

Specifies whether the component is enabled (true) or disabled (false). If the component is disabled, it will not accept mouse or keyboard interaction from the user. The component will also be grayed-out to visually indicate its state to the user.

 

Example

The week_example1.fla example file contains an example of using this method.

The following code disables the component and then traces it state.

myWeekView_wkv.setEnabled( false );
trace( "Enabled: " + myWeekView_wkv.getEnabled( ) ); //traces "Enabled: false"

 

See also

FWeekView.getEnabled()